package com.wh1200.mybatis.xmlless.resolver

import com.wh1200.mybatis.xmlless.config.BaseResolverTest
import com.wh1200.xmlless.test.dao.StudentDetailDAO
import org.junit.jupiter.api.Test
import kotlin.reflect.jvm.javaMethod
import kotlin.test.assertNotNull

class JsonPropertyResolver : BaseResolverTest(
    StudentDetailDAO::class.java
) {

  @Test
  fun test() {
    val method = StudentDetailDAO::findDetailById.javaMethod!!
    val query = createQueryForMethod(method)
    val sql = query.sql
    assertNotNull(sql)
  }
}